package com.ihr360.insurance.deserializer;

import com.fasterxml.jackson.databind.module.SimpleDeserializers;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.ihr360.insurance.model.dto.benefits.MandatoryBenefitTemplate;

public class MyCustomModule extends SimpleModule {
    @Override
    public void setupModule(SetupContext context) {

        //    SimpleSerializers serializers = new SimpleSerializers();
        SimpleDeserializers deserializers = new SimpleDeserializers();

        //      serializers.addSerializer(MyEntity.class, new MyEntitySerializer());
        deserializers.addDeserializer(MandatoryBenefitTemplate.class, new EntityDeserializer());

        //  context.addSerializers(serializers);
        context.addDeserializers(deserializers);
    }
}